package com.qf.service;

import com.qf.dao.ProFileMapper;
import com.qf.pojo.Profile;

import java.util.List;

/**
 * projectName:my_profile
 * author:luo
 * time:2023/1/30 11:26
 */
public class ProFileServiceImpl implements ProFileService {
    private ProFileMapper proFileMapper;

    public void setProFileMapper(ProFileMapper proFileMapper) {
        this.proFileMapper = proFileMapper;
    }

    public ProFileMapper getProFileMapper() {
        return proFileMapper;
    }

    @Override
    public List<Profile> find() {
        return proFileMapper.select();
    }

    @Override
    public Profile getDetail(String id) {
        return proFileMapper.selectDetail(id);
    }

    @Override
    public void modify(Profile profile) {
        proFileMapper.update(profile);
    }

//    @Override
//    public PageBean<Profile> findByPage(int page_num, int page_size) {
//        long totalSize= proFileMapper.getCount();
////        System.out.println(totalSize);
//        List<Profile> data= proFileMapper.selectByPage(page_num,page_size);
//        PageBean<Profile> pageBean=new PageBean<Profile>(page_num,page_size,totalSize,data);
//        return pageBean;
//    }
}
